'''
@Project ：python-learn 
@File    ：4.3.py
@IDE     ：PyCharm 
@Author  ：计科2011-12-匡鑫
@Date    ：2024/9/19 14:30
@Description: 写入一段文本到 b.txt 中
'''
with open('D:/code/python-learn/a.txt', 'w',encoding='utf-8') as file:
    file.write("jkkkka\n")
    file.write("酷酷酷酷酷")
